<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>document</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/redactor.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<%@ include file="include/top.jsp" %>
	<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<form style="margin-left:10px" action="updateComment.jspx" method="post" id="form">
					  <fieldset>
						<legend style="color:#708090">编辑评论</legend>
						<!-- <label>标题</label> -->
						<input type="hidden" name="id" value="${requestScope.ic.id }"/>
						<!-- <input type="text" style="width:688px" name="idea" value="${requestScope.newIdea.idea_title}"> -->
						<label>内容</label>
						<textarea class="redactor_text" name="content">${requestScope.ic.comment_content}</textarea>
						<div class="button_group">
						<button type="button" class="btn btn-info" id="btn">编辑成功</button>
					   
						<button type="button" class="btn" id="fh">返回</button>
						</div>
					  </fieldset>
                 </form>
				</div>
				<div class="span3">
				</div>
			</div>
		</div>
		<!--container end-->
		<div class="footer">
			<p>Copyright © 2013 xxx版权所有</p>
		</div>
		<!--footer end-->
	</div>
	
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/redactor.js"></script>
	<script type="text/javascript" src="js/zh_cn.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".redactor_text").redactor({ 
	            lang: 'zh_cn',
	            buttons: [ 'bold', 'italic', 'deleted', '|',
	    'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'link', '|','fontcolor', 'backcolor', '|', 'alignment', '|', 'horizontalrule']
	           });
		});
		
		$("#btn").click(function(){
		    $("#form").submit();
			
		});
		$("#fh").click(function(){
		   location.href="idea_comment.jspx?IdeaId="+'${requestScope.ic.idea_id}';
			
		});
		
		
	</script>
</body>
</html>
